package com.xclink.app.service.core.ReplyMessage;

import java.util.Date;

import com.xclink.app.utils.message.MessageUtil;
import com.xclink.app.utils.message.resp.Image;
import com.xclink.app.utils.message.resp.ImageMessage;
/**
 * 集中处理图片消息之回复图片消息
 * @author ljp
 *
 */
public class ProcessImageMessage {
	public String process(String toUserName,String fromUserName,String mediaId){
		// 自动回复图片消息	
		ImageMessage imageMessage = new ImageMessage();
		Image image = new Image();
		image.setMediaId(mediaId);
		imageMessage.setToUserName(fromUserName);
		imageMessage.setFromUserName(toUserName);
		imageMessage.setCreateTime(new Date().getTime());
		imageMessage.setImage(image);
		imageMessage.setMsgType(MessageUtil.RESP_MESSAGE_TYPE_IMAGE);
		return MessageUtil.MessageToXml(imageMessage);
	}

}
